﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace Sun.WPF.Controls
{
    public class SunScrollViewer : ScrollViewer
    {
        /// <summary>
        /// 圆角
        /// </summary>
        public int BorderRadius
        {
            get { return (int)GetValue(BorderRadiusProperty); }
            set { SetValue(BorderRadiusProperty, value); }

        }

        public static readonly DependencyProperty BorderRadiusProperty = DependencyProperty.Register("BorderRadius", typeof(int), typeof(SunScrollViewer), new FrameworkPropertyMetadata());

        /// <summary>
        /// 滚动条背景
        /// </summary>
        public string ScrollBarBackground
        {
            get { return (string)GetValue(ScrollBarBackgroundProperty); }
            set { SetValue(ScrollBarBackgroundProperty, value); }
        }

        public static readonly DependencyProperty ScrollBarBackgroundProperty = DependencyProperty.Register("ScrollBarBackground", typeof(string), typeof(SunScrollViewer), new FrameworkPropertyMetadata());

        /// <summary>
        /// 滚动框背景
        /// </summary>
        public string ScrollBoxBackground
        {
            get { return (string)GetValue(ScrollBoxBackgroundProperty); }
            set { SetValue(ScrollBoxBackgroundProperty, value); }
        }

        public static readonly DependencyProperty ScrollBoxBackgroundProperty = DependencyProperty.Register("ScrollBoxBackground", typeof(string), typeof(SunScrollViewer), new FrameworkPropertyMetadata());

    }
}
